import axios from 'axios'

const instance = axios.create({
    baseURL: 'http://localhost:8081', // 修改为实际用户服务地址
    timeout: 5000
})

instance.interceptors.request.use(config => {
    const token = localStorage.getItem('token')
    if (token) config.headers.Authorization = token
    return config
})

export default instance
